package com.zh.tea.entity;

import java.util.List;

/**
 * 茶品展示分页
 * @author Administrator
 *
 */
public class PageTea {	
	private int pageStart;
	private int pageNum;
	private int pageSize;
	private int total;
	private int pageCount;
	private List<Tea> teas;
	
	@Override
	public String toString() {
		return "PageTea [pageStart=" + pageStart + ", pageNum=" + pageNum
				+ ", pageSize=" + pageSize + ", total=" + total
				+ ", pageCount=" + pageCount + ", teas=" + teas + "]";
	}
	public int getPageStart() {
		return (pageNum-1)*pageSize;
	}
	public void setPageStart(int pageStart) {
		this.pageStart = (pageNum-1)*pageSize;
	}
	public int getPageNum() {
		return pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public List<Tea> getTeas() {
		return teas;
	}
	public void setTeas(List<Tea> teas) {
		this.teas = teas;
	}
	public int getPageCount() {
		return total%pageSize==0 ? total/pageSize:total/pageSize+1;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = total%pageSize==0 ? total/pageSize:total/pageSize+1;
	}
	
}
